FROM python:3.6.9

MAINTAINER Jerry<huhailang@yahoo.cn>

RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com fastapi
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com uvicorn
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com loguru
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com bert4keras==0.4.8
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com numpy
RUN pip install keras==2.2.5
RUN pip install 'h5py<3.0.0'
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com jieba
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com gensim
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com pandas
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com tqdm
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com keras-self-attention==0.49.0
RUN pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com tensorflow==1.15.0

WORKDIR /text2punctuation

CMD python api.py
